package com.my.service;

import com.my.entity.Emp;
import com.my.entity.EmpQueryParam;
import com.my.entity.LoginInfo;
import com.my.entity.PageBean;

import java.util.List;

public interface EmpService {

    /** 多参传递 - service
    PageBean page(String name, Integer gender, LocalDate begin, LocalDate end, Integer page, Integer pageSize);
     */

    PageBean page(EmpQueryParam backage);

    void save(Emp emp) throws Exception;

    /**删除员工*/
    void delete(List<Integer> ids);

    /**回显员工*/
    Emp getById(Integer id);

    /**
     * 修改员工
     *
     * @return
     */

    void update(Emp emp);

    LoginInfo login(Emp emp);
}
